package week7;

public class PhoneDesc {
    public String brand;
    public String type;
    public String os;
    public int price;
    public int mememorySize;

    public PhoneDesc(String brand, String type, String os, int price, int mememorySize) {
        this.brand = brand;
        this.type = type;
        this.os = os;
        this.price=price;
        this.mememorySize = mememorySize;
    }
    public void aboutPhone()
    {
        System.out.println("品牌："+brand+"\n"+"型号："+type+"\n");
    }
    public  void call(int num)
    {
        System.out.println("使用自动拨号功能");
        String callPerson="";
        switch (num)
        {
            case 1:callPerson="爷爷的号："+num;break;
            case 2:callPerson="奶奶的号："+num;break;
            case 3:callPerson="妈妈的号："+num;break;
            case 4:callPerson="爸爸的号："+num;break;
        }
        System.out.println(callPerson);
    }
    public void playGame()
    {
        System.out.println("玩猜字游戏！");
    }
    public void downLoadMusic()
    {
        System.out.println("开始下载……");
        System.out.println("下载完成……");
    }
    public void playMusic(String song)
    {
        System.out.println(song+"开始播放");
    }
}
